package com.stox.dto.web;

public class Message {

	private final String field;
	
	private final MessageType messageType;
	
	private final String text;
	
	public Message(String text) {
		this(text, MessageType.INFO);
	}
	
	public Message(String text, MessageType messageType) {
		this(null, text, messageType);
	}

	public Message(String field, String text, MessageType messageType) {
		this.field = field;
		this.text = text;
		this.messageType = messageType;
	}
	
	public MessageType getMessageType() {
		return messageType;
	}
	
	public String getText() {
		return text;
	}
	
	public String getField() {
		return field;
	}
	
}
